<form method="POST" action="{{ url_for('index') }}" novalidate>
      <label>用户名:</label>
      <input type="text" name="username" required><br>
      <label>密码:</label>
      <input type="password" name="password" required><br>
      <input type="submit" value="登录">
      {{ message }}
</form>